import request from "@/utils/request";

export function queryPage(data) {
  return request({
    url: "/iotSource/queryPage",
    method: "post",
    data
  })
}

export function queryList(data) {
  return request({
    url: "/iotSource/queryList",
    method: "get",
    params: data
  })
}

export function insertByModel(data) {
  return request({
    url: "/iotSource/insertByModel",
    method: "post",
    data
  })
}

export function updateByModel(data) {
  return request({
    url: "/iotSource/updateByModel",
    method: "post",
    data
  })
}

export function deleteByModel(data) {
  return request({
    url: "/iotSource/delete",
    method: "post",
    data
  })
}

export function queryHisList(data) {
  return request({
    url: "/iotSource/queryHisList",
    method: "get",
    params: data
  })
}

export function syncData(data) {
  return request({
    url: "/iotSource/syncData",
    method: "post",
    data
  })
}

